Skip to main content

All Questions

0votes
0answers
40views

Rails UJS Remote Form Only Evaluates JS for 2XX Responses but Not 4XX Responses

Was there a change in how JQuery 3 and Jquery 1 handled remote form errors on Rails? In the past, (Rails 6, Zurb Foundation, Jquery 1), the code below would work. A user would submit a form, they'd ...
Patrick Jones's user avatar
1vote
0answers
198views

Rails 7 and Stimulus: How to integrated TailwindCSS without any other JS library?

For my new hobby project, I wanted to use Rails 7, Stimulus and the TailwindCSS framework. I was looking for some TailwindCSS templates and I found out that basically all of the templates require some ...
user984621's user avatar
0votes
0answers
112views

How Do I Migrate a large Rails 6/7 App from Zurb Foundation to Bootstrap 5?

I'm working on a Rails 6 (soon to be 7) app that is built on Zurb Foundation. I've decided that it makes sense to move to Bootstrap 5 because the support and maintenance of Foundation is getting less ...
Patrick Jones's user avatar
0votes
1answer
65views

I cannot deploy to heroku... I am getting an error that my application.scss is not found because heroku is looking for application.css. Any tips?

When I deploy to heroku open up the logs and load up the server logs. This is the error I am getting... ActionView::Template::Error (The asset "application.css" is not present in the asset ...
TheCodeSommelier's user avatar
1vote
1answer
60views

What is inserting an inline style attribute into my code?

Here's a sample of the code my view is generating: <button class="keyboard-button bg-success" type="button">t</button> Here's what it looks like in the inspector (both ...
Eric's user avatar
  • 2,285
1vote
0answers
233views

Issues Rendering ActionText With Rails 7 App

I've created a Rails 7 app and have thus far, only configured it to use Bootstrap5.3.2 (Bootstrap appears to be working correctly). I've attempted to install ActionText but the textbox is not ...
CodeAndStuff's user avatar
1vote
1answer
34views

How to create a dropdown menu from a list generated through find-each method (in a Rails app)?

In the navbar of my Rails blog-app I have the following piece of code that lists the available categories of articles that are available in the site. <div class=""> <% ...
German's user avatar
2votes
1answer
796views

How do I stop non-network entries from showing in DevTools network tab?

For the site I'm working on, in the Chrome DevTools network tab I often get over 100 identical requests for the same SVG check mark image. It looks like this: They are not actually requesting ...
cesoid's user avatar
  • 1,128
1vote
1answer
117views

Are imports required for each SASS file?

It's been almost a decade since I coded in Rails, and I'm getting a little confused by rails @import practices for sass files. Specifically: I have an application.scss with the following: @import '...
PlankTon's user avatar
0votes
1answer
167views

Bootstrap Rails Form Label Inline Instead of Above Field

I have the following form using this gem for Rails Bootstrap forms: https://github.com/bootstrap-ruby/bootstrap_form My form code looks like this: <%= bootstrap_form_for(resource, as: resource_name,...
James's user avatar
0votes
0answers
75views

Image grid as button in bootstrap

I have 4 images with different sizes. I want to create a grid of 2x2 with each block is equal to each other and it is a clickable image (work as a button). How can I do this in CSS/Bootstrap? This is ...
Thai Nam Hoang's user avatar
6votes
1answer
2kviews

Bootstrap JS not working with Rails Importmap

I have a Rails 7 App that I'm using Importmap with. I'm loading the Bootstrap JS via the gem and docs so my config/importmap.rb has: pin "popper", to: 'popper.js', preload: true pin "...
Mark Robinson's user avatar
0votes
1answer
330views

Iterating with rails and using bootstrap to get cards to display in columns of 3?

I am trying to get iterate through rails to create cards that grid in 3 then new line etc using each. Currently the cards only stack vertically. I would like them to be in columns of 3 and then resize ...
samko's user avatar
0votes
1answer
52views

How do I change a text_field in Rails into radio buttons with Bootstrap?

I'm using Bootstrap to create a form and I have two text fields where you can enter either 'yes' or 'no'. Instead of entering text, would it be possible to create two radio buttons instead called 'yes'...
asamyo's user avatar
1vote
1answer
906views

Turbo Frames not recognizing Javascript from the head

I'm working on building my template and have the initial steps down. I'm on Rails 7.0.2.4, turbo-rails 1.1.1, Bootstrap 5. In my layouts template's I have the following: = javascript_include_tag &...
Patrick Vellia's user avatar

153050per page
close